package com.sg.model.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sg.framework.common.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.util.Date;

/**
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_message_member_channel_relation")  //2-5-09 成员通道关系表
public class OmsMessageMemberChannelRelation extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 成员通道关系ID
     */
    @TableId(value = "member_channel_relation_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "memberChannelRelationId不能为空")
    private String memberChannelRelationId;

    /**
     * 通道ID
     */
    @TableField(value = "channel_id")
    @NotNull(message = "通道ID不能为空")
    @Schema(description = "通道ID")
    private String channelId;

    /**
     * 通道类型编码 MESSAGE_ASSISTANT:消息助手 PERSONAL_SESSION:个人会话 GROUP_SESSION:内容圈子群会话 CUSTOMER_SERVICE_SESSION:客服会话 CONTENT_COMMENT_SESSION:1111圈子内容评论会话（废弃） NOT_COMMENT_SESSION:非内容圈子评论会话 CONTENT_ORIGIN_QA_SESSION:文案助手 THIRD_QA_SESSION:独立第三方问答 ORG_GROUP:组织群 DEPT_GROUP:部门群 DEPT_IDEA_GROUP:部门想法 PERSONAL_IDEA_SESSION:个人想法 NORMAL_GROUP_SESSION:普通会话群
     */
    @TableField(value = "channel_type_code")
    @NotNull(message = "通道类型编码不能为空")
    @Schema(description = "通道类型编码")
    private String channelTypeCode;

    /**
     * 归属身份人员ID
     */
    @TableField(value = "original_role_member_id")
    @NotNull(message = "归属身份人员ID不能为空")
    @Schema(description = "归属身份人员ID")
    private String originalRoleMemberId;

    /**
     * 归属个人账号ID
     */
    @TableField(value = "user_id")
    @NotNull(message = "归属个人账号ID不能为空")
    @Schema(description = "归属个人账号ID")
    private String userId;

    /**
     * toB或toC场景 TOB_SCENE:toB场景 TOC_SCENE:toC场景
     */
    @TableField(value = "borc_scene")
    @NotNull(message = "toB或toC场景不能为空")
    @Schema(description = "toB或toC场景")
    private String borcScene;

    /**
     * 好友是员工或个人ID
     */
    @TableField(value = "friend_counterpart_entity_id")
    @Schema(description = "好友是员工或个人ID")
    private String friendCounterpartEntityId;

    /**
     * 发送方是员工或个人ID
     */
    @TableField(value = "counterpart_entity_id")
    @NotNull(message = "发送方是员工或个人ID不能为空")
    @Schema(description = "发送方是员工或个人ID")
    private String counterpartEntityId;

    /**
     * 发送方名称
     */
    @TableField(value = "counterpart_channel_name")
    @NotNull(message = "发送方名称不能为空")
    @Schema(description = "发送方名称")
    private String counterpartChannelName;

    /**
     * 消息使用通道类别 INTELLIGENT_STUDY:智能学习 INTELLIGENT_CUSTOMER_SERVICE:智能客服 NOTIFICATION_ANNOUNCEMENT:通知公告 CONTENT_COMMUNICATION:内容沟通 WORK_CIRCLE:工作圈 IDEA:想法
     */
    @TableField(value = "msg_channel_class_code")
    @Schema(description = "消息使用通道类别")
    private String msgChannelClassCode;

    /**
     * 发送方缩略图地址
     */
    @TableField(value = "counterpart_channel_logo")
    @NotNull(message = "发送方缩略图地址不能为空")
    @Schema(description = "发送方缩略图地址")
    private String counterpartChannelLogo;

    /**
     * 对方虚拟形象标识
     */
    @TableField(value = "virtual_image_code")
    @Schema(description = "对方虚拟形象标识")
    private String virtualImageCode;

    /**
     * 最新一条消息内容
     */
    @TableField(value = "new_message")
    @NotNull(message = "最新一条消息内容不能为空")
    @Schema(description = "最新一条消息内容")
    private String newMessage;

    /**
     * 11111是否管理员 TRUE:是 FALSE:否
     */
    @TableField(value = "is_manager")
    @Schema(description = "11111是否管理员")
    private String isManager;

    /**
     * 最新消息发送方是否助手 TRUE:是 FALSE:否
     */
    @TableField(value = "is_assitant")
    @Schema(description = "最新消息发送方是否助手")
    private String isAssitant;

    /**
     * 是否静音 TRUE:是 FALSE:否
     */
    @TableField(value = "is_silence")
    @NotNull(message = "是否静音不能为空")
    @Schema(description = "是否静音")
    private String isSilence;

    /**
     * 是否退出保留 TRUE:是 FALSE:否
     */
    @TableField(value = "is_save_data")
    @Schema(description = "是否退出保留")
    private String isSaveData;

    /**
     * 是否置顶 TRUE:是 FALSE:否
     */
    @TableField(value = "is_top")
    @NotNull(message = "是否置顶不能为空")
    @Schema(description = "是否置顶")
    private String isTop;

    /**
     * 是否有人at我 TRUE:是 FALSE:否
     */
    @TableField(value = "is_at_me")
    @NotNull(message = "是否有人at我不能为空")
    @Schema(description = "是否有人at我")
    private String isAtMe;

    /**
     * 未读条数
     */
    @TableField(value = "un_read_counts")
    @NotNull(message = "未读条数不能为空")
    @Schema(description = "未读条数")
    private Long unReadCounts;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;

    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;

    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;

    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
